import requests
from bs4 import BeautifulSoup
url = "http://www.pxu.edu.cn/"
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'
}
respones = requests.get(url=url,headers=headers)
respones.encoding = 'utf-8'
soup = BeautifulSoup(respones.text,"lxml")

list1 = soup.select('.qh_list>ul>li')
fp = open("D:\\a.txt","w",encoding='utf-8')
# print(list1)
for i in list1:
    date = i.span.string
    title = i.a.string
    href = i.a['href']
    fp.write(date+title+href+'\n')